<?php

namespace app\index\controller\lawsuit;

use ShidianUtil\Thinkphp\Response\ApiResponse;
use think\APP;
use think\Request as Request;

/**
 * Step1 控制器
 * Class Step1
 * @package app\index\controller\lawsuit;
 * @link https://www.kancloud.cn/manual/thinkphp6_0/1037509
 * @see \app\index\validate\lawsuit\LawCase
 */
class Step1
{
    // 请求参数
    private Request $request;


    public function __construct(Request $request)
    {
        $this->request = $request;
    }

    /**
     * 读取
     * @return ApiResponse
     * @url /lawsuit/step1/read
     */
    public function read(): ApiResponse
    {
        $data = [
            'messages' => [
                [
                    'content' => '成都黄先生5秒前提交问题',
                ],
                [
                    'content' => '西安刘先生10秒前提交问题',
                ],
                [
                    'content' => '武汉张先生1秒前提交问题',
                ],
                [
                    'content' => '北京邓女士48秒前提交问题',
                ],
                [
                    'content' => '杭州黄女士23秒前提交问题',
                ],
                [
                    'content' => '南京吴女士6秒前提交问题',
                ],
            ]
        ];

        return ApiResponse::success($data);
    }

}
